package com.woniuxy01;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-07-18 9:40
 */
public class Test02 {

    public static void main(String[] args) {
        for (int n=1;n<=20;n++) {
            int  num=0, f1 = 1, f2 = 1;
            if (n == 1 || n == 2) {
                num = 1;
            } else {
                for (int i = 3; i <= n; i++) {
                    num = f1 + f2;
                    f1=f2;
                    f2=num;
                }
            }
            System.out.println(num);
        }
    }
}
